import request from '@/utils/request'

// 查询岗位信息列表
export function listInformation(query) {
    return request({
        url: '/post/experiment/list',
        method: 'get',
        params: query
    })
}

// 查询岗位信息详细
export function getInformation(jobId) {
    return request({
        url: '/post/experiment/' + jobId,
        method: 'get'
    })
}

// 新增岗位信息
export function addInformation(data) {
    return request({
        url: '/post/experiment',
        method: 'post',
        data: data
    })
}

// 修改岗位信息
export function updateInformation(data) {
    return request({
        url: '/post/experiment',
        method: 'put',
        data: data
    })
}

// 删除岗位信息
export function delInformation(jobId) {
    return request({
        url: '/post/experiment/' + jobId,
        method: 'delete'
    })
}

//
export function listCanDo(jobId){
    return request({
        url:'/post/experiment/canDo/'+jobId,
        method:'get'
    })
}

export function getCanDo(id){
    return request({
        url:'/post/experiment/canDo/one/'+id,
        method:'get'
    })
}
export function updateCanDo(data){
    return request({
        url:'/post/experiment/canDo',
        method:'put',
        data:data
    })
}
export function addCanDo(data){
    return request({
        url:'/post/experiment/canDo',
        method:'post',
        data:data
    })
}
export function deleteCando(id){
    return request({
        url:'/post/experiment/canDo/'+id,
        method:'delete'
    })
}